package com.spicesoft.clientobjects.testobjects;

/**
 * A test object that contains a computed property (see {@link #getFullName()}.
 * 
 * @author yjbanov
 */
public class ComputedPropertyPojo {

    private String firstName;
    private String lastName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /**
     * This property has no setter. It is calculated using the values of
     * firstName and lastName properties. Such properties are sometimes called
     * computed or transient properties.
     * 
     * @return full name
     */
    public String getFullName() {
        return this.firstName + " " + this.lastName;
    }

}
